Motion.SetAxisHomeSwitch 方法
设定用作原点复归开关的数位感测器。
命名空间:IntervalZero.KINGSTAR.Local.Api
组合: IntervalZero.KINGSTAR.Local.Api (于 IntervalZero.KINGSTAR.Local.dll) 版本:4.4.0.0
语法
public KsError SetAxisHomeSwitch(
int Index,
bool AxisSwitch,
int ModuleIndex,
int BitOffset,
bool Invert
)
Public Function SetAxisHomeSwitch(
Index As Integer,
AxisSwitch As Boolean,
ModuleIndex As Integer,
BitOffset As Integer,
Invert As Boolean
) As KsError
参数
Index
型别:int
轴索引。索引以 0 为起始;别名将影响此参数。
AxisSwitch
型别:bool
true:若感测器连接到轴输入则设为 true;false:若感测器连接到 I/O 模组则设为 false。
ModuleIndex
型别:int
识别何 I/O 模组或轴内含有感测器,别名将影响此参数。
BitOffset
型别:int
此偏移量(位元)为模组输入变数中的感测器数位输入。
Invert
型别:bool
反转感测器值。
回传值
方法的回传代码。
备注
开始执行原点复归前,用此方法设定欲使用哪个数位输入作为感测器来使用。
范例
N/A
参见